import request from './request.js'
// 获取一级分类
export function getFirstCategorys() {
  return request({
    url: '/api/course/category/getFirstCategorys',
    method: 'GET'
  })
}

// 获取二级分类
export function getSecondCategorys(categoryId) {
  return request({
    url: '/api/course/category/getSecondCategorys',
    method: 'GET',
    params: { categoryId }
  })
}